
-- code Tips
lspconfig = require "lspconfig"
util = require "lspconfig/util"
-- Lua 语言配置`
lspconfig.lua_ls.setup{}

-- go语言配置
lspconfig.gopls.setup{}
--lspconfig.gopls.setup{
--    cmd = {"gopls", "serve"},
--    filetypes = {"go", "gomod"},
--    root_dir = util.root_pattern("go.work", "go.mod", ".git"),
--    settings = {
--      gopls = {
--        analyses = {
--          unusedparams = true,
--        },
--        staticcheck = true,
--      },
--    },
--}
-- JSON LSP配置
lspconfig.jsonls.setup{}